import org.junit.Test;


public class Array {
	
	@Test
	public void myMainTest(){
		System.out.println("Array Test");
		
		// 1D array
		//String A16[] = null; // Define the variable as an array.
		//String[] A16 = null;
		String[] A16 = new String[4];
		A16[0] = "Moha";
		A16[1] = "Saket";
		A16[2] = "Payal";
		A16[3] = "Jen";
		
		for (int i=0; i<4; i++) {
			System.out.println("Place " + i + " is " + A16[i]);
		}
		
		String[][] TwoD = new String[2][3];
		TwoD[0][0] = "Row 1 Col 1";
		TwoD[0][1] = "Row 1 Col 2";
		TwoD[0][2] = "Row 1 Col 3";
		TwoD[1][0] = "Row 2 Col 1";
		TwoD[1][1] = "Row 2 Col 2";
		TwoD[1][2] = "Row 2 Col 3";
		
		for (int i=0; i<2; i++) {
			System.out.println("i is " + i);
			for (int j=0; j<3; j++) {
				//System.out.println("Row " + (i+1) + " has " + TwoD[i][0]);
				System.out.println("j is " + j);
			}
		}
		
	}

}
